

// 路由菜单  (每一个页面板块的文件)

export const  menus = [
    {
        path:"/index/home",
        name:"home",
        component:()=>import("@/views/home/index.vue"),
        text:"首页",
        premession:1,   // 权限 
        icon:"el-icon-s-home"
    },
    {
        path:"/index/healthy",
        name:"healthy",
        component:()=>import("@/views/healthy/index.vue"),
        text:"健康管理",
        premession:1,   // 权限 
        icon:"el-icon-menu",
        redirect:"/index/healthy/tiwen",
        children:[
            {
                path:"/index/healthy/tiwen",
                name:"tiwen",
                component:()=>import("@/views/healthy/tiwen.vue"),
                text:"体温管理",
                premession:1,   // 权限 
                icon:"el-icon-share" 
            },
            {
                path:"/index/healthy/suan",
                name:"suan",
                component:()=>import("@/views/healthy/suan.vue"),
                text:"核算检测",
                premession:1,   // 权限 
                icon:"el-icon-s-home" 
            },

        ]
    },
    {
        path:"/index/advise",
        name:"advise",
        text:"意见管理",
        component:()=>import("@/views/advise/index.vue"),
        icon:"el-icon-upload",
        redirect:"/index/advise/add",
        premession:1,
        children:[
            {
                path:"/index/advise/add",
                name:"adviseadd",
                component:()=>import("@/views/advise/add.vue"),
                text:"发布意见",
                premession:1,
            },
            {
                path:"/index/advise/list",
                name:"adviselist",
                component:()=>import("@/views/advise/list.vue"),
                text:"意见列表",
                premession:1,
            },
            {
                path:"/index/advise/edit/:id",
                name:"adviseedit",
                component:()=>import("@/views/advise/edit.vue"),
                text:"编辑意见",
                premession:1,
                hide:true
            },
            {
                path:"/index/advise/reply/:id",
                name:"advisereply",
                component:()=>import("@/views/advise/reply.vue"),
                text:"回复意见",
                premession:1,
                hide:true
            },
            
        ]
    },
    {
        path:"/index/user",
        name:"user",
        text:"用户管理",
        component:()=>import("@/views/user/index.vue"),
        icon:"el-icon-s-custom",
        redirect:"/index/user/list",
        premession:3, 
        children:[
            {
                path:"/index/user/list",
                name:"userlist",
                component:()=>import("@/views/user/list.vue"),
                text:"用户列表",
                premession:3,
            },
            {
                path:"/index/user/add",
                name:"useradd",
                component:()=>import("@/views/user/add.vue"),
                text:"用户新增",
                premession:3,
            }
        ]
    },
    {
        path:"/index/buy",
        name:"buy",
        component:()=>import("@/views/buybox/index.vue"),
        text:"购物社区",
        premession:1,   // 权限 
        icon:"el-icon-shopping-cart-2",
        redirect:"/index/buy/list",
        children:[
            {
                path:"/index/buy/list",
                name:"buylist",
                component:()=>import("@/views/buybox/list.vue"),
                text:"商品列表",
                premession:1,   // 权限 
                icon:"el-icon-notebook-2" 
            },
            {
                path:"/index/buy/mygood",
                name:"mygood",
                component:()=>import("@/views/buybox/mygood.vue"),
                text:"我的商品",
                premession:1,   // 权限 
                icon:"el-icon-goods" 
            },
            {
                path:"/index/buy/detail/:goodId",
                name:"gooddetail",
                component:()=>import("@/views/buybox/detail.vue"),
                text:"商品详情",
                premession:1,
                hide:true,
            },
            {
                path:"/index/buy/cash/:goodId",
                name:"mycash",
                component:()=>import("@/views/buybox/cash.vue"),
                text:"商品结算页",
                premession:1,
                hide:true,
            }

        ]
    },
    
    
    {
        path:"/index/role",
        name:"role",
        component:()=>import("@/views/role/index.vue"),
        text:"角色",
        icon:"el-icon-edit-outline",
        redirect:"/index/role/list",
        premession:3,
        children:[
            {
                path:"/index/role/list",
                name:"rolelist",
                component:()=>import("@/views/role/list.vue"),
                text:"角色列表",
                premession:3,
            },
            {
                path:"/index/role/change",
                name:"rolechange",
                component:()=>import("@/views/role/change.vue"),
                text:"权限管理",
                premession:3,
            }
        ]
    },
    

   
   
    
    
    
]